<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title><?php echo $title_for_layout?></title>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
	<?php echo $this->Html->css(array("cake.generic")); ?>
	<?php echo $this->Html->script(array("ckeditor/ckeditor")); ?>
	<?php echo $scripts_for_layout ?>
	<script type="text/javascript">
		window.onload = function(){
			//CKEDITOR.replace('ArticleBody');
		}
	</script>
</head>
<body>

<div id="header">
	<div>
		<?php
			echo "Welcome: " . AuthComponent::user('username');
			echo $this->Html->link("Logout", array("controller" => "users", "action" => "logout"), array("class" => "logout"));
		?>
	</div>
	<div>
		<?php echo $this->Html->link("Articles", array("controller" => "articles", "action" => "index")); ?>
		<?php echo $this->Html->link("Categories", array("controller" => "categories", "action" => "index")); ?> -
		<?php echo $this->Html->link("Users", array("controller" => "users", "action" => "index")); ?>
		<?php echo $this->Html->link("Roles", array("controller" => "roles", "action" => "index")); ?>
	</div>

</div>
<div id="content">
	<?php echo $this->Session->flash(); ?>
	
	<?php echo $content_for_layout ?>
</div>
	<div id="footer">...</div>
	<?php echo $this->element('sql_dump'); ?>

</body>
</html>